/*
  flamingo - 2D Game Engine
  Copyright (C) 2009 Bradley Zeis

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.

  Bradley Zeis
  flamingoengine@gmail.com
*/

/* -------- UTILITY -------- */
PyObject *fl_bind(char *filename, ILuint *images, int length, int width, int height, int speed, int sheet);
int uload(char *filename, int *width, int *height, int *length, int *speed);

/* -------- LOADING -------- */
PyObject *fl_load(PyObject *self, PyObject *args, PyObject *kwds);
PyObject *fl_load_sheeth(PyObject *self, PyObject *args, PyObject *kwds);
PyObject *fl_load_sheetv(PyObject *self, PyObject *args, PyObject *kwds);

/* -------- TEXTURE METHODS -------- */
/* Initialization */
void Texture_dealloc(Texture *self);
PyObject *Texture_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
int Texture_init(Texture *self, PyObject *args, PyObject *kwds);
PyObject *Texture_hash(Texture *self);
/* Presentation */
PyObject *Texture_repr(Texture *self);
PyObject *Texture_str(Texture *self);
/* General Functions */
PyObject *Texture_update(Texture *self, PyObject *args);
/* Properties */
PyObject *Texture_getspeed(Texture *self, void *closure);
int Texture_setspeed(Texture *self, PyObject *value, void *closure);
PyObject *Texture_getframe(Texture *self, void *closure);
int Texture_setframe(Texture *self, PyObject *value, void *closure);

PyMODINIT_FUNC initimage(void);
